package com.changcheng.project.apppublishlog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.apppublishlog.mapper.AAppPublishLogMapper;
import com.changcheng.project.apppublishlog.domain.AAppPublishLog;
import com.changcheng.project.apppublishlog.service.IAAppPublishLogService;
import com.changcheng.common.utils.text.Convert;

/**
 * obu发布记录Service业务层处理
 * 
 * @author dazhi
 * @date 2020-10-31
 */
@Service
public class AAppPublishLogServiceImpl implements IAAppPublishLogService 
{
    @Autowired
    private AAppPublishLogMapper aAppPublishLogMapper;

    /**
     * 查询obu发布记录
     * 
     * @param id obu发布记录ID
     * @return obu发布记录
     */
    @Override
    public AAppPublishLog selectAAppPublishLogById(Long id)
    {
        return aAppPublishLogMapper.selectAAppPublishLogById(id);
    }

    /**
     * 查询obu发布记录列表
     * 
     * @param aAppPublishLog obu发布记录
     * @return obu发布记录
     */
    @Override
    public List<AAppPublishLog> selectAAppPublishLogList(AAppPublishLog aAppPublishLog)
    {
        return aAppPublishLogMapper.selectAAppPublishLogList(aAppPublishLog);
    }

    /**
     * 新增obu发布记录
     * 
     * @param aAppPublishLog obu发布记录
     * @return 结果
     */
    @Override
    public int insertAAppPublishLog(AAppPublishLog aAppPublishLog)
    {
        return aAppPublishLogMapper.insertAAppPublishLog(aAppPublishLog);
    }

    /**
     * 修改obu发布记录
     * 
     * @param aAppPublishLog obu发布记录
     * @return 结果
     */
    @Override
    public int updateAAppPublishLog(AAppPublishLog aAppPublishLog)
    {
        return aAppPublishLogMapper.updateAAppPublishLog(aAppPublishLog);
    }

    /**
     * 删除obu发布记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAAppPublishLogByIds(String ids)
    {
        return aAppPublishLogMapper.deleteAAppPublishLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除obu发布记录信息
     * 
     * @param id obu发布记录ID
     * @return 结果
     */
    @Override
    public int deleteAAppPublishLogById(Long id)
    {
        return aAppPublishLogMapper.deleteAAppPublishLogById(id);
    }
}
